var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2DataManager = require("DataManager");
var $2UIManager = require("UIManager");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_LoadingUI = /* */function (_cc$Component44) {
  babel_inherits(r, _cc$Component44);
  var _super48 = babel_createSuper(r);
  function r() {
    var _this105;
    babel_classCallCheck(this, r);
    _this105 = _super48.apply(this, arguments);
    _this105.uiName = "";
    _this105.bundleName = "";
    return _this105;
  }
  babel_createClass(r, [{
    key: "onLoad",
    value: function onLoad() {}
  }, {
    key: "init",
    value: function init(e) {
      var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
      this.uiName = e;
      this.bundleName = t;
    }
  }, {
    key: "update",
    value: function update(e) {
      if ($2DataManager.default.instance[this.bundleName]) {
        $2UIManager.default.instance.closeUI("LoadingUI");
        $2UIManager.default.instance.openUI(this.uiName);
      }
    }
  }]);
  return r;
}(cc.Component);
def_LoadingUI = cc__decorate([ccp_ccclass], def_LoadingUI);
exports.default = def_LoadingUI;